package com.homson.servicedomain.domain.user;

import com.homson.coreservice.serviceinfrastructure.datasource.model.user.UserDO;
import org.springframework.stereotype.Service;

import java.util.Objects;

/**
 * @author: homson_leo
 * @contact: hey_超级巨星（Homson_Leo）- 刘泓岑 1196816884@qq.com
 * @time: 2025/10/19 2:36 PM
 **/
@Service
public class UserQueryCommand extends BaseCommand{
    
    public Boolean isUserExist(Long userId) {
        UserDO user = userRepository.findUserById(userId);
        if(Objects.isNull(user)){
            return false;
        }
        return true;
    }
}
